package com.etc.test1;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class TestMain2 {

    public static void main(String[] args) {
        ApplicationContext contex = new ClassPathXmlApplicationContext("application-Context.xml");
        BookController controller = contex.getBean(BookController.class);
        System.out.println(controller);
                
        System.out.println(controller.service);
    }
}
